package com.itheima.userprofile.bean.repo;

import com.itheima.userprofile.bean.po.TagPo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TagRepository extends JpaRepository<TagPo, Long> {
    //查询是否是重复的标签
//    同级别,同名字,同父ID
    TagPo findByLevelAndNameAndPid(Integer level, String name, Long pid);

    List<TagPo> findByPid(Long pid);
}
